import request from '@/utils/request'

// 分页查询组卷资料列表
export function getZuJuanList(params) {
  return request({
    method: 'get',
    url: '/land/zjData/query',
    params
  })
}

//详情
export function getZuJuanDetail(pkid) {
  return request({
    method: 'get',
    url: `/land/zjData/queryById?pkid=${pkid}`
  })
}

// 编辑
export function examSave(data) {
  return request({
    method: 'post',
    url: '/land/zjData/update',
    data
  })
}
//下载模板
export function downloadExcel() {
  return request({
    method: 'get',
    url: '/land/zjData/exportJsydzdqkmxb',
    responseType: 'blob',
    headers: {
      'Content-Type':
        'application/json; application/octet-stream'
    }
  })
}
//导入excel
export function uploadJsydzdqkmxb(data) {
  console.log(Object(data))
  return request({
    method: 'post',
    url: '/land/zjData/uploadJsydzdqkmxb',
    data
  })
}
